home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
t3dlib
/
source
/
smakefile
< prev
next >
Wrap
Makefile
|
1995-02-13
|
5KB
|
154 lines
# SMakefile for T3DLIB
# $Id: SMakefile,v 1.12 1993/12/12 13:43:01 glewis Exp glewis $
REV=R41
C_SRCS=read.c write.c readtddd.c writeray.c writeps.c writemif.c writevort.c \
writenff.c writeoff.c writedxf.c sort.c freeworld.c merge.c writeim.c \
writepov.c writelwob.c readlwob.c
# OBJS=${C_SRCS:.c=.o}
OBJS= read.o write.o readtddd.o writeray.o writeps.o writemif.o writevort.o \
writenff.o writeoff.o writedxf.o sort.o freeworld.o merge.o writeim.o \
writepov.o writelwob.o readlwob.o
EXES=readwrite tddd2off tddd2nff tddd2vort tddd2ray tddd2ps \
tddd2mif tddd2dxf tddd2pov
REGEXES=spherize mbb set_texture_path set_brush_path
#
# For the Amiga, using SAS/C 6.50...
#
CC=sc
CFLAGS=
GST=t3d.gst
LDLIBS=t3d.lib
LDFLAGS=
AR=oml
AROPTS=
RANLIB=ranlib
LINKFLAGS=link
RM=delete
#
# For UNIX,
#
# CC=gcc
# CFLAGS=-g -ansi
# GST= # t3d.gst
# LDLIBS=libt3d.a
# LDFLAGS=/usr/ucblib/libucb.a -lm
# AR=ar
# AROPTS=rcu
# RANLIB=ranlib
# LINKFLAGS=-o $@
# RM=rm
.c.o:
$(CC) $(CFLAGS) $*.c
all: $(LDLIBS) $(EXES)
@echo " "
@echo 'Thank you for supporting this Shareware by sending your 25 (US) dollars to:'
@echo " "
@echo "Glenn M. Lewis"
@echo "8341 Olive Hill Court"
@echo "Fair Oaks, CA 95628"
@echo "(USA)"
@echo "glewis@netcom.com"
@echo " "
release:
smake clean
smake "CFLAGS=CPU=ANY MATH=IEEE NoDebug Optimize" OTHER=EXE lha
smake clean
smake "CFLAGS=CPU=68020 MATH=68881 NoDebug Optimize" OTHER=FPU lha
reg: $(REGEXES) bumpit TexIt
$(OBJS): t3dlib.h $(GST)
bumpit.o : noise.h
noise.o : noise.h
write.o : write.c t3dlib.h $(GST)
$(CC) $(CFLAGS) DEFINE=REV="$(REV)" write.c
overlay_stub.o : overlay_stub.a
asm overlay_stub.a
#
t3d.gst: t3dlib.h SCOPTIONS
sc mgst=t3d.gst $(CFLAGS) dummygst.c
$(LDLIBS): $(OBJS)
$(AR) $(AROPTS) $(LDLIBS) $(OBJS)
# $(RANLIB) $(LDLIBS)
$(REGEXES) $(EXES): $(LDLIBS)
$(CC) $(CFLAGS) $(LINKFLAGS) $>.c $(LDLIBS) $(LDFLAGS)
bumpit: noise.o $(LDLIBS)
$(CC) $(CFLAGS) $(LINKFLAGS) $>.c noise.o $(LDLIBS) $(LDFLAGS)
TexIt: overlay_stub.o $(LDLIBS)
$(CC) $(CFLAGS) $(LINKFLAGS) $>.c overlay_stub.o $(LDLIBS) $(LDFLAGS)
clean:
delete *.o $(LDLIBS) $(EXES) $(REGEXES) bumpit TexIt t3d.gst
.1.doc:
anro -mman:an.nro $*.1 > $*.doc
bumpit.doc : bumpit.1
mbb.doc : mbb.1
readwrite.doc : readwrite.1
set_brush_path.doc : set_brush_path.1
set_texture_path.doc : set_texture_path.1
spherize.doc : spherize.1
tddd2dxf.doc : tddd2dxf.1
tddd2mif.doc : tddd2mif.1
tddd2nff.doc : tddd2nff.1
tddd2off.doc : tddd2off.1
tddd2pov.doc : tddd2pov.1
tddd2ps.doc : tddd2ps.1
tddd2ray.doc : tddd2ray.1
tddd2vort.doc : tddd2vort.1
texit.doc : texit.1
man: readwrite.doc tddd2off.doc tddd2nff.doc tddd2vort.doc tddd2ray.doc \
tddd2ps.doc tddd2mif.doc tddd2dxf.doc tddd2pov.doc texit.doc \
bumpit.doc spherize.doc mbb.doc set_texture_path.doc set_brush_path.doc
lha: publha reglha
publha: all man
-$(RM) T3DLIB_Src_$(REV).lha
lha a T3DLIB_Src_$(REV).lha README.$(REV) CHANGES SMakefile SCOPTIONS t3dlib.h \
Makefile read.c write.c readtddd.c writeray.c writeps.c \
writemif.c writevort.c writenff.c writeoff.c writedxf.c sort.c \
freeworld.c merge.c writeim.c writepov.c writelwob.c readlwob.c \
tddd2lwob.c tddd2pov.c tddd2dxf.c tddd2nff.c tddd2off.c tddd2vort.c \
tddd2ray.c tddd2ps.c tddd2mif.c readwrite.c \
read_protos.h write_protos.h readtddd_protos.h writeray_protos.h \
writeps_protos.h writemif_protos.h writevort_protos.h \
writenff_protos.h writeoff_protos.h writedxf_protos.h sort_protos.h \
freeworld_protos.h merge_protos.h writeim_protos.h \
writepov_protos.h writelwob_protos.h readlwob_protos.h \
tddd2lwob_protos.h tddd2pov_protos.h tddd2dxf_protos.h \
tddd2nff_protos.h tddd2off_protos.h tddd2vort_protos.h \
tddd2ray_protos.h tddd2ps_protos.h tddd2mif_protos.h \
readwrite_protos.h
-$(RM) T3DLIB_$(OTHER)_$(REV).lha
lha a T3DLIB_$(OTHER)_$(REV).lha \
$(LDLIBS) readwrite tddd2off tddd2nff tddd2vort tddd2ray tddd2ps \
tddd2mif tddd2dxf tddd2pov \
readwrite.doc tddd2off.doc tddd2nff.doc tddd2vort.doc tddd2ray.doc \
tddd2ps.doc tddd2mif.doc tddd2dxf.doc tddd2pov.doc \
readwrite.1 tddd2off.1 tddd2nff.1 tddd2vort.1 tddd2ray.1 tddd2ps.1 \
tddd2mif.1 tddd2dxf.1 tddd2pov.1 \
bumpit.doc spherize.doc mbb.doc set_texture_path.doc set_brush_path.doc \
texit.doc texit.1 \
bumpit.1 spherize.1 mbb.1 set_texture_path.1 set_brush_path.1
reglha: reg
-$(RM) T3DLIB_Reg_$(OTHER)_$(REV).lha
lha a T3DLIB_Reg_$(OTHER)_$(REV).lha \
bumpit spherize mbb set_texture_path set_brush_path texit \
bumpit.c spherize.c mbb.c set_texture_path.c set_brush_path.c \
noise.c bumpit_protos.h spherize_protos.h mbb_protos.h \
set_texture_path_protos.h set_brush_path_protos.h noise.h